﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp2
{
    class Car
    {
        private string brand;
        private string type;

        public string Brand
        {
            get { return this.brand; }
            set { this.brand = value; }
        }

        public string Type
        {
            get { return this.type; }
            set { this.type = value; }
        }

        public Car(string brand, string type)
        {
            this.brand = brand;
            this.type = type;
        }

        public Car()
        {
        }

        public void Run()
        {
            Console.WriteLine("一辆品牌是{0}，型号是{1}的车在奔跑", this.brand, this.type);
        }

    }
}
